QT       += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++11
CONFIG+=C99
# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0
QT += serialport
QT += network
SOURCES += \
    scr/administrator.cpp \
    scr/comconfig.cpp \
    scr/internet.cpp \
    scr/main.cpp \
    scr/mainwindow.cpp \
    scr/zg291.cpp \
    scr/zg291_pm1_0.cpp \
    scr/zg291bora_para.cpp \
    scr/zg291ch2o_para.cpp \
    scr/zg291co2_para.cpp \
    scr/zg291global.cpp \
    scr/zg291paradata.cpp \
    scr/zg291pecu_para.cpp \
    scr/zg291pm10_para.cpp \
    scr/zg291pm2_5_para.cpp \
    scr/zg291temper_para.cpp \
    scr/zg291hum_para.cpp \
    scr/zg291tvoc_para.cpp \

HEADERS += \
    inc/administrator.h \
    inc/comconfig.h \
    inc/internet.h \
    inc/mainwindow.h \
    inc/zg291.h \
    inc/zg291_pm1_0.h \
    inc/zg291bora_para.h \
    inc/zg291ch2o_para.h \
    inc/zg291co2_para.h \
    inc/zg291global.h \
    inc/zg291hum_para.h \
    inc/zg291paradata.h \
    inc/zg291pecu_para.h \
    inc/zg291pm10_para.h \
    inc/zg291pm2_5_para.h \
    inc/zg291temper_para.h \
    inc/zg291tvoc_para.h \

FORMS += \
    administrator.ui \
    comconfig.ui \
    internet.ui \
    mainwindow.ui \
    zg291.ui \
    zg291_pm1_0.ui \
    zg291bora_para.ui \
    zg291ch2o_para.ui \
    zg291co2_para.ui \
    zg291global.ui \
    zg291hum_para.ui \
    zg291pecu_para.ui \
    zg291pm10_para.ui \
    zg291pm2_5_para.ui \
    zg291temper_para.ui \
    zg291tvoc_para.ui
LIBS += -Ldll -lws2_32
LIBS += -lwlanapi
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

RESOURCES += \
    ZG291.qrc
win32 {

RC_ICONS = qrc/logo.ico

}
